﻿using System.Linq;
using ZBJF.Warranty.Model;
using ZBJF.Warranty.Model.ViewModel.BaseData;
using ZBJF.Warranty.Model.ViewModel.BaseQueryModel;

namespace ZBJF.Warranty.IBLL
{
    public partial interface IInsuranceCompanyService
    {
        InsuranceCompany Load(long id);
        InsuranceCompany Load(string companyName,string parantCompanyName);
        InsuranceCompany GetCompanyByParentId(long parentId);
        IQueryable<InsuranceCompany> GetInsuranceCompanyAll(bool onlyParent);
        bool IsExist(string insuranceCompanyName, long id = 0);

        IQueryable<InsuranceCompany> GetPagingList(BaseQueryParams model, out int total);
    }
}